{# 继承父模板 #}
{% extends "block.html" %}


{% block head %}
{# 按照父模板进行初始化 #}
{{block.super}}
<div>
    <button>head</button>
</div>
{% endblock head %}

{% block foot %}
<div><button>foot</button></div>
{# 导入其他模板文件#}
{% include "child_include.html" %}
{% endblock foot %}